package com.cloudpan.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 分片上传-分片任务记录
 * </p>
 *
 * @author Code Generator
 * @since 2024-01-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="SysUploadTask对象", description="分片上传-分片任务记录")
public class SysUploadTask implements Serializable {

    private static final long serialVersionUID=1L;

      @TableId(value = "id", type = IdType.ASSIGN_ID)
      private Long id;

      @ApiModelProperty(value = "分片上传的uploadId")
      private String uploadId;

      @ApiModelProperty(value = "文件唯一标识（md5）")
      private String fileIdentifier;

      @ApiModelProperty(value = "文件名")
      private String fileName;

      @ApiModelProperty(value = "所属桶名")
      private String bucketName;

      @ApiModelProperty(value = "文件的key")
      private String objectKey;

      @ApiModelProperty(value = "文件大小（byte）")
      private Long totalSize;

      @ApiModelProperty(value = "每个分片大小（byte）")
      private Long chunkSize;

      @ApiModelProperty(value = "分片数量")
      private Integer chunkNum;

      @ApiModelProperty(value = "创建时间")
      @TableField(fill = FieldFill.INSERT)
      private LocalDateTime createTime;


}
